ActivityContract
class ActivityContract<Activity : Activity>(val activityClass: KClass<Activity>, val provideResultLauncher: Activity.() -> ActivityResultLauncher<Intent>) : NavigationSpec.Activity.LaunchType
android.app.Activity will launch using an ActivityResultLauncher generated for an instance of activityClass
Parameters
Activity
the type of android.app.Activity to provide the ActivityResultLauncher
activityClass
The KClass of the Activity to generate the ActivityResultLauncher for
provideResultLauncher
A callback method called on an instance of activityClass to provide an ActivityResultLauncher to launch the new activity with. Note that this method may be called after the instance of activityClass has been created.
Constructors
Link copied to clipboard
constructor(activityClass: KClass<Activity>, provideResultLauncher: Activity.() -> ActivityResultLauncher<Intent>)